package com.hp.modules.sys.dto;

import com.hp.common.validator.Groups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

@ApiModel(description = "上传记录")
public class SysUploadRecordParam {
    @ApiModelProperty(value = "主键-更新时必填")
    @NotNull(message = "主键不能为空", groups = {Groups.Update.class})
    private long id;
    @ApiModelProperty(value = "业务类型", required = false)
    private String bizTypr;
    @ApiModelProperty(value = "业务id", required = false)
    private Long bizId;
    @ApiModelProperty(value = "文件保存的资源路径", required = false)
    private String url;
    @ApiModelProperty(value = "上传的原始文件名", required = false)
    private String fileName;
    @ApiModelProperty(value = "资源大小，单位为字节", required = false)
    private Long fileSize;
    @ApiModelProperty(value = "资源类型", required = false)
    private String mimeType;
    @ApiModelProperty(value = "上传资源的后缀名", required = false)
    private String fileExt;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getBizTypr() {
        return bizTypr;
    }

    public void setBizTypr(String bizTypr) {
        this.bizTypr = bizTypr;
    }

    public Long getBizId() {
        return bizId;
    }

    public void setBizId(Long bizId) {
        this.bizId = bizId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public String getMimeType() {
        return mimeType;
    }

    public void setMimeType(String mimeType) {
        this.mimeType = mimeType;
    }

    public String getFileExt() {
        return fileExt;
    }

    public void setFileExt(String fileExt) {
        this.fileExt = fileExt;
    }
}
